<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="csrf-token" content="{{ csrf_token() }}" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link rel="stylesheet" href="/admin/css/apply.css">
	<script src="/admin/js/jquery-1.11.1.min.js"></script>
	<script src="/admin/js/rem.js" type="text/javascript" charset="utf-8"></script>
	<title></title>
</head>
<body>
<div class="fuc_wrap">
	<a href="/admin/binding/disarm?apply=smoke"><div class="dv1"><img src="/admin/img/smoke.png"/></div></a>
	<p class="p1">烟&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp感({{$data['smoke']}})</p>
	<a href="/admin/binding/disarm?apply=infrared"><div class="dv2"><img src="/admin/img/infrared.png"/></div></a>
	<p class="p2" >红&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp外({{$data['infrared']}})</p>
	<a href="/admin/binding/disarm?apply=electric"><div class="dv3"><img src="/admin/img/electric.png"/></div></a>
	<p class="p3">电&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp器({{$data['electric']}})</p>
	<a href="/admin/binding/disarm?apply=gas"><div class="dv4"><img src="/admin/img/gas.png"/></div></a>
	<p class="p4">燃&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp气({{$data['gas']}})</p>
	<a href="/admin/binding/disarm?apply=call_help"><div class="dv5"><img src="/admin/img/call_help.png"/></div></a>
	<p class="p5">呼&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp叫({{$data['call_help']}})</p>
</div>
	<button class="btn">解&nbsp;&nbsp;绑</button>
</body>
</html>
<script>
    function apply(det) {
        $.ajax({
            type:'post',
            url:'/admin/binding/act',
            async:false,
            data:{
                'apply':det
            },
            dataType:'json',
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            success:function (data) {

            }
        })
    }
     $(function(){
     	$(".btn").click(
     		function(){
     			$(location).attr('href','/admin/binding/dele');
     		}
     	)
     })
</script>